//
//  XHRSquareCell.m
//  BuDeJie
//
//  Created by haoran on 16/4/6.
//  Copyright © 2016年 xuhaoran. All rights reserved.
//

#import "XHRSquareCell.h"
#import "XHRSquareItem.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface XHRSquareCell  ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end
@implementation XHRSquareCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


-(void)setItem:(XHRSquareItem *)item{

    _item = item;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    self.nameLabel.text = item.name;
    
}
@end
